OresratiChallenge OXP by Okti.

This OXP adds a fun mission to the lonelinest system of the oouniverse, Oresrati. If you find a way to reach Oresrati, this mission offers a way out of the galaxy 8.


This OXP is the first OXP allowing other OXP's to suspend its Functionality by using Call backs.

To achive that write a call back function like the one below

this.checkSuspendOresratiChalenge = function()
{
   if(galaxyNumber == 7 && system.ID == 162 && (missionVariables.MYOXP_status == "STAGE_120" || missionVariables.MYOXP_status == "STAGE_100" || missionVariables.MYOXP_status == "STAGE_110"))
   {
      return(true);
   }
        else 
        {
                return(false);
        }
}


and in the startUp your worlscript add the following code,


this.startUp = function()
{
	if(worldScripts["oresratichalange_main"])
	{
		worldScripts.oresratichalange_main.addToCallbacks({worldScript: "YourOXPWordScriptName", callBack: "checkSuspendOresratiChalenge"});
	}
}


Enjoy




Requires v1.74.0 or later of Oolite. It will not run on older versions.

--------------------------------------------------------------

License:

This OXP is released under the Creative Commons Attribution - Non-Commercial - Share Alike 3.0 license with the following clauses:

* Whilst you are free (and encouraged) to re-use any of the scripting, models or texturing in this OXP, the usage must be distinct from that within this OXP. Unique identifiers such as (but not limited to) unique shipdata.plist entity keys, mission variables, script names (this.name), equipment identity strings (EQ_), description list arrays and entity roles must not be re-used without prior agreement. Basically if it's unique or would identify or overwrite anything in the original OXP, then you may not re-use it (for obvious compatibility reasons).
* rebundling of this OXP within another distribution is permitted as long as it is unchanged. The following derivates however are permitted and except from the above:
	* the conversion of files between XML and openStep.
	* the merging of files with other files of the same type from other OXPs.
* The license information (either as this file or merged into a larger one) must be included in the OXP.
* Even though it is not compulsory, if you are re-using any sizable or recognisable piece of this OXP, please let me know :)

--------------------------------------------------------------

Instructions:

Unzip the file, and then move the folder "OresratiChallenge v0.1.oxp" to the AddOns directory of your Oolite installation. Then start the game up and the mission should be added. 

--------------------------------------------------------------


Special thanks to Thargoid for alowing me to borrow bits from his licence file.







  
